﻿<%@ Page Language="C#" MasterPageFile="~/System/MasterPage.master" AutoEventWireup="true"
    CodeFile="ProductAndCompanySwitch.aspx.cs" Inherits="Agency_Default" Title="企业管理" %>

<%@ Register Src="../System/DbPageFlip.ascx" TagName="DbPageFlip" TagPrefix="uc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="cphMaster" runat="Server">

    <script language="vbscript" src="../Common/yz.vbs"></script>

    <script language="javascript" type="text/javascript">
// <!CDATA[

        function Button5_onclick() {
            window.open("CompanyAdd.aspx", null)
        }

// ]]>
    </script>

    <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
        <tr>
            <td style="width: 4px">
                <img src="../images/intro_left.gif" width="4" height="34">
            </td>
            <td class="intro_wordbg">
                企业管理
            </td>
            <td background="../images/intro_bg.gif">
                <img src="../images/intro_right.jpg" width="118" height="34">
            </td>
        </tr>
    </table>
    <table id="tabData" class="list" cellpadding="1" cellspacing="1">
        <tr>
            <td class="td_left_20">
                用户编码：
            </td>
            <td class="td_right_30">
                <asp:TextBox ID="txtUserCode" runat="server" InvertedComma="用户编码" CssClass="txtbox_200"></asp:TextBox>
            </td>
            <td class="td_left_20">
                单位名称：
            </td>
            <td class="td_right_30">
                <asp:TextBox ID="txtAttorneyName" runat="server" InvertedComma="单位名称" CssClass="txtbox_200"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td class="td_left_20">
                维护企业信息：
            </td>
            <td colspan="3">
                <input type="submit" name="btnQBSQCompany" value="全部授权" class="button_80" onclick="javascript:return confirm('确定真的要全部授权吗？？？？ ');"
                    id="Submit1" />
                <input type="submit" name="btnQBQXCompany" value="全部取消" class="button_80" onclick="javascript:return confirm('确定真的要全部取消吗？？？？ ');"
                    id="Submit2" />
                <input type="submit" name="btnSQCompany" value="授  权" class="button_80" onclick="javascript:return confirm('确定真的要授权吗？？？？ ');"
                    id="Submit3" />
                <input type="submit" name="btnQXCompany" value="取  消" class="button_80" onclick="javascript:return confirm('确定真的要取消吗？？？？ ');"
                    id="Submit4" />
            </td>
        </tr>
        <tr>
            <td class="td_left_20">
                维护商品信息：
            </td>
            <td colspan="3">
                <input type="submit" name="btnQBSQProduct" value="全部授权" class="button_80" onclick="javascript:return confirm('确定真的要全部授权吗？？？？ ');"
                    id="Submit5" />
                <input type="submit" name="btnQBQXProduct" value="全部取消" class="button_80" onclick="javascript:return confirm('确定真的要全部取消吗？？？？ ');"
                    id="Submit6" />
                <input type="submit" name="btnSQProduct" value="授  权" class="button_80" onclick="javascript:return confirm('确定真的要授权吗？？？？ ');"
                    id="Submit7" />
                <input type="submit" name="btnQXProduct" value="取  消" class="button_80" onclick="javascript:return confirm('确定真的要取消吗？？？？ ');"
                    id="Submit8" />
            </td>
        </tr>
        <tr>
            <td colspan="4" class="td_center">
                <asp:Button ID="Button6" runat="server" OnClick="Button5_Click" Text="查  询" CssClass="button_80"
                    OnClientClick="javascript:return CheckForm();" />
                <asp:Button ID="Button1" runat="server" CssClass="button_120" Text="打印企业联系信息" OnClick="Button1_Click" />
                <asp:Button ID="Button2" runat="server" CssClass="button_120" Text="打印医院采购信息" OnClick="Button2_Click" />
                <asp:Button ID="Button7" runat="server" CssClass="button_120" Text="关闭企业预报名" 
                    onclick="Button7_Click"  />
            </td>
        </tr>
        <tr>
            <td colspan="4" class="td_center">
                <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" Width="100%">
                    <Columns>
                        <asp:BoundField DataField="UserCode" HeaderText="用户编码" ItemStyle-HorizontalAlign="Center" />
                        <asp:BoundField DataField="CompanyName" HeaderText="企业名称" />
                        <asp:BoundField DataField="ProductAddStatus" HeaderText="维护商品信息" ItemStyle-HorizontalAlign="Center" />
                        <asp:BoundField DataField="CompanyUpdateStatus" HeaderText="维护企业信息" ItemStyle-HorizontalAlign="Center" />
                        <asp:TemplateField HeaderText="选择" ItemStyle-HorizontalAlign="Center">
                            <ItemTemplate>
                                <input name="chk" type="checkbox" value='<%# DataBinder.Eval(Container.DataItem, "AccountId")%>'>
                            </ItemTemplate>
                        </asp:TemplateField>
                    </Columns>
                </asp:GridView>
                <uc1:DbPageFlip ID="DbPageFlip1" runat="server" />
                <asp:GridView ID="dv" runat="server">
                </asp:GridView>
            </td>
        </tr>
    </table>
</asp:Content>
